<template>
  <div class="total">
    <el-container>
      <el-main>
        <div class="top">
          <!-- <img src="./images/微信图片2.jpg" alt="" class="topimg" /> -->
          <video width="100%" height="100%" autoplay muted loop>
           <source src="./video/20201106174401_45274.mp4" type="video/mp4">
          </video>
          <div class="videotext">
            <p class="cn">成为客户首选</p>
            <p class="cn">打造国际品牌</p>
            <p class="en">Be the customer's first choice</p>
            <p class="en">Build an international brand</p>
          </div>
        </div>
        <div class="fang">
          <span>不一样的房，一样的家</span>
          <p class="miaosu">最温馨的灯光 一定在你回家的路上</p>
          <p class="miaosu">再名贵的树，也不及你记忆中的那一棵</p>
          <p class="miaosu">潮来潮去，沙滩依旧</p>
          <!-- <p class="miaosu">卸下你心里的围墙,回家吧孩子</p> -->
        </div>
        <div class="content">
          <div class="crad">
            <div class="image">
              <div class="mask"></div>
              <!-- <img src="./images//2.jpg" alt="" class="img1" /> -->
              <img src="./images//微信图片1.jpg" alt="" class="img1" />
              <p class="a">商品房</p>
            </div>
          </div>
          <div class="crad">
            <div class="image">
              <div class="mask"></div>
              <img src="./images//photo5.avif" />
              <!-- <img src="./images/微信图片2.jp" /> -->
              <p class="b">公寓</p>
            </div>
          </div>
          <div class="crad">
            <div class="image">
              <div class="mask"></div>
              <img src="./images//skyscrapers-3184798_1920(1).jpg" />
              <p class="c">写字楼</p>
            </div>
          </div>
          <div class="crad">
            <div class="image">
              <div class="mask"></div>
              <img src="./images/photo1.avif" />
              <p class="d">安置房</p>
            </div>
          </div>
          <div class="crad">
            <div class="image">
              <div class="mask"></div>
              <img src="./images/photo2.avif" />
              <p class="e">小权房</p>
            </div>
          </div>
          <div class="crad">
            <div class="image">
              <div class="mask"></div>
              <img src="./images/photo3.avif" />
              <p class="f">经济适用房</p>
            </div>
          </div>
        </div>
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "MyCategories",
};
</script>

<style scoped lang="less">
.top{
  position: relative;
}
.videotext{
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translate(0,-50%);
  .cn{
    font-size: 60px;
    color: #fff;
  }
  .en{
    font-size: 20px;
    color: #fff;
  }
}
.mask {
  // background: lime no-repeat center;
  background: rgba(0, 0, 0, 0.5) no-repeat center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  // display: none;
  opacity: 0;
  position: absolute;
}

.crad img {
  transition: all 0.6s;
}
.crad:hover img {
  transform: scale(1.2);
}
.crad:hover .a,.crad:hover .b,.crad:hover .c,.crad:hover .d,.crad:hover .e,.crad:hover .f{
  padding: -10px;
  z-index: 666 !important;
  opacity: 1 !important;
  font-size: 20px;
}
.crad:hover .mask {
  z-index: 1;
  // display: block;
  opacity: 1;
}
.topimg {
  // height: 30%;
  width: 100%;
}
.el-main {
  padding: 0;
}
.fang {
  text-align: center;
  margin-top: 40px;
  span {
    font-weight: bold;
    font-family: "微软雅黑";
    font-size: 28px;
    color: #595959;
  }
  .miaosu {
    font-family: "Microsoft JhengHei";
    margin: 30px 0 0px;
    font-size: 20px;
  }
}
.content {
  width: 100%;
  display: flex;
  flex-wrap: wrap; //自适应换行
  padding: 50px 20px;
  box-sizing: border-box;
  justify-content: space-between; //自适应换行后靠左右两边排列
  .crad {
    position: relative;
    
    width: 30%;
    margin: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    overflow: hidden;
    .image {
      
      img {
        width: 100%;
        vertical-align: middle;
      }
    }
    .a,.b,.c,.d,.e,.f {
      transition: all 0.6s;
      display: inline-block;
      padding: 0 30px;
      border-bottom: 1px solid #fff;
      border-top: 1px solid #fff;
      opacity: 0;
      position: absolute;
      transform: translate(-50%, -50%);
      top: 50%;
      left: 50%;
      // width: 100%;
      height: 40px;
      //   background-color: #c5a544;
      line-height: 40px;
      color: white;
      font-weight: 550;
      overflow: hidden;
      text-align: center;
    }
    // .crad:hover .image{transform:translate( -50% ,-50%) scale(1.1)}
  }
}
</style>
